package org.jeecg.modules.demo.advancesReceived.service.impl;

import org.jeecg.modules.demo.advancesReceived.entity.YxAdvancesReceived;
import org.jeecg.modules.demo.advancesReceived.mapper.YxAdvancesReceivedMapper;
import org.jeecg.modules.demo.advancesReceived.service.IYxAdvancesReceivedService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @Description: yx_advances_received
 * @Author: jeecg-boot
 * @Date:   2021-12-16
 * @Version: V1.0
 */
@Service
public class YxAdvancesReceivedServiceImpl extends ServiceImpl<YxAdvancesReceivedMapper, YxAdvancesReceived> implements IYxAdvancesReceivedService {

    @Resource
    private YxAdvancesReceivedMapper advancesReceivedMapper;

    @Override
    public String getMaxCode(){
        return advancesReceivedMapper.getMaxCode();
    }

    @Override
    public YxAdvancesReceived getByReceiptNumber(String number){
        return advancesReceivedMapper.getByReceiptNumber(number);
    }

    @Override
    public Map<String, Double> getYcgBytradecode(String tradecode) {
        return advancesReceivedMapper.getYcgBytradecode(tradecode);
    }


}
